require 'rake'
require 'spec/rake/spectask'

Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].each { |ext| load ext }

task :default => ["specs:run"]

desc "Count lines of Ruby in the application"
task :count do
  sh "wc -l **/*.rb"
end

desc "Clean up the directory"
task :clean => ["wiki:clean", "specs:clean", "macos:clean"] do
  FileUtils.rm_rf('tmp') if File.exists?('tmp')
end